package top.healthylife.gateway.platform.baohu.api.api;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baohu.api.dto.BaofuReqDto;
import top.healthylife.gateway.platform.baohu.api.dto.BaofuResDto;
import top.healthylife.gateway.platform.baohu.api.util.BaofuUtil;

/**
 * @author cl
 * @version 1.0
 * @date 2020/4/10 14:50
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20,apiName = "宝付请求接口", info = "请求宝付验证接口")
public class BaofuApi implements ParentFace<BaofuReqDto, BaofuResDto> {

    @Override
    public BaofuResDto execute(BaofuReqDto baofuReqDto) throws Exception {
        return BaofuUtil.selectBaofoo(baofuReqDto,BaofuUtil.systemConfigInfo(baofuReqDto),BaofuResDto.class);
    }
}
